package com.example.demo.service;

import com.example.demo.dao.UserMapper;
import com.example.demo.model.UserInfo;
import com.example.demo.model.vo.UserInfoVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {
    @Autowired
    private UserMapper userMapper;

    //注册
    public int reg(UserInfo userInfo) {
        return userMapper.reg(userInfo);
    }
    //根据用户名查询登录
    public UserInfo getUserByName(UserInfoVO userInfoVO) {
        return userMapper.getUserByName(userInfoVO);
    }
}
